package cn.myschool.java79.test;

import cn.myschool.java79.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.sql.Connection;

/**
 * @author oldliu
 * @since 1.0
 */
public class TEstDatSource {
    public static void main(String[] args) {
        for(int i=1;i<=4;i++) {
            SqlSession s = MybatisUtil.get();
            Connection connection = s.getConnection();
            System.out.println(connection.hashCode());
            MybatisUtil.close(s);
        }
    }
}
